import request from '@/utils/request'

// 查询订单消费列表
export function listOrderdeduct(query) {
  return request({
    url: '/orderdeduct/orderdeduct/list',
    method: 'get',
    params: query
  })
}

// 查询订单消费详细
export function getOrderdeduct(id) {
  return request({
    url: '/orderdeduct/orderdeduct/' + id,
    method: 'get'
  })
}

// 新增订单消费
export function addOrderdeduct(data) {
  return request({
    url: '/orderdeduct/orderdeduct',
    method: 'post',
    data: data
  })
}

// 修改订单消费
export function updateOrderdeduct(data) {
  return request({
    url: '/orderdeduct/orderdeduct',
    method: 'put',
    data: data
  })
}

// 删除订单消费
export function delOrderdeduct(id) {
  return request({
    url: '/orderdeduct/orderdeduct/' + id,
    method: 'delete'
  })
}
